//============================================================================
// Name        : cph
// Author      : Andrew Tausz <atausz@stanford.edu>
// Version     : 1.0
// Copyright   : Copyright © 2011 Andrew Tausz
// Description : A basic package for persistent homology in C++
//============================================================================

#include <iostream>

#include "../phom/src/point_cloud_examples.h"
#include "../phom/src/cph_interface.h"

using namespace cph;

int main(void)
{

	std::size_t dimension = 1;
	double max_filtration_value = 0.4;

	cph::euclidean_metric_space<double> metric_space(point_cloud_examples::create_random_sphere_points(10, dimension));

	barcode_collection<double> result = cph::default_persistent_homology(metric_space, dimension, max_filtration_value);

	basic_matrix<double> matrix(result.get_endpoint_matrix(max_filtration_value));

	std::cout << result << std::endl;
	std::cout << matrix << std::endl;

	//delete(matrix);

	return 0;
}
